package com.soft.javase.ch02.test01;

/**
 * @author wangzhisen
 * @Desc TODO
 * @date 2025/4/18
 */
public class Worker extends Person {
    public Worker() {
    }

    public Worker(String name, int age) {
        super(name, age);
    }

    public void work() {

        System.out.println("有个工人叫"+this.getName()+", "+this.getAge()+"岁,正在工作");
    }
}
